﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
using System.Drawing.Imaging;

namespace DeskBugtracker
{
    public partial class TestTFSPlugin : Form
    {
        public TestTFSPlugin()
        {
            InitializeComponent();
        }

        private void btnTest_Click(object sender, EventArgs e)
        {
            TFSPlugin.Plugin plugin = new TFSPlugin.Plugin();

            if (plugin.HasOptions())
            {
                txtResult.Text = plugin.ShowOptionsDialog(this.Handle, txtResult.Text);
                bool result = plugin.ValidateParameters(this.Handle, txtResult.Text);
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            TFSCommon.BugSelection bs = new TFSCommon.BugSelection(txtResult.Text);
            bs.ShowDialog();
        }
    }
}
